#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "wqsharememory.h"
#include <QString>
#include <QList>
#include <QPushButton>
#include <QRadioButton>
#include <QComboBox>
#include <QLabel>
#include "cJSON.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void init_ui_objs(void);
    int get_selected_radiobutton(void);
    void test_cjson(void);
    void parse_json_data(char *text);

    WQShareMemory *p_WQSmem_for_test;
    int g_stepIndex;

    QList<QPushButton*> listButtons;
    QList<QPushButton*> listSelectedColorsBtn;
    QList<QRadioButton*> listRadioButtons;
    QList<QComboBox*> listComboxs;
    QString gColors[64];
private slots:
    void on_pushButton_color_1_clicked();

    void on_pushButton_color_2_clicked();

    void on_pushButton_color_3_clicked();

    void on_pushButton_color_4_clicked();

    void on_pushButton_color_5_clicked();

    void on_pushButton_color_6_clicked();

    void on_pushButton_color_7_clicked();

    void on_pushButton_color_8_clicked();

    void on_pushButton_color_9_clicked();

    void on_pushButton_color_10_clicked();

    void on_pushButton_color_11_clicked();

    void on_pushButton_color_12_clicked();

    void on_pushButton_color_13_clicked();

    void on_pushButton_color_14_clicked();

    void on_radioButton_2_clicked();

    void on_radioButton_1_clicked();

    void on_radioButton_3_clicked();

    void on_radioButton_4_clicked();

    void on_radioButton_5_clicked();

    void on_radioButton_6_clicked();

    void on_radioButton_7_clicked();

    void on_radioButton_8_clicked();

    void on_radioButton_9_clicked();

    void on_radioButton_10_clicked();

    void on_radioButton_11_clicked();

    void on_comboBox_1_currentIndexChanged(int index);

    void on_comboBox_2_currentIndexChanged(int index);

    void on_comboBox_3_currentIndexChanged(int index);

    void on_comboBox_4_currentIndexChanged(int index);

    void on_comboBox_5_currentIndexChanged(int index);

    void on_comboBox_6_currentIndexChanged(int index);

    void on_comboBox_7_currentIndexChanged(int index);

    void on_comboBox_8_currentIndexChanged(int index);

    void on_comboBox_9_currentIndexChanged(int index);

    void on_comboBox_10_currentIndexChanged(int index);

    void on_comboBox_11_currentIndexChanged(int index);

    void on_comboBox_1_textActivated(const QString &arg1);

    void on_comboBox_1_currentIndexChanged(const QString &arg1);

    void on_pushButton_stop_light_clicked();

    void on_pushButton_constLlight_clicked();

    void on_pushButton_breathlight_clicked();

    void on_selected_color_1_clicked();

    void on_selected_color_2_clicked();

    void on_selected_color_3_clicked();

    void on_selected_color_4_clicked();

    void on_selected_color_5_clicked();

    void on_selected_color_6_clicked();

    void on_selected_color_7_clicked();

    void on_selected_color_8_clicked();

    void on_selected_color_9_clicked();

    void on_selected_color_10_clicked();

    void on_selected_color_11_clicked();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
